package com.zy.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.entity.ZyMenu;
import com.zy.entity.ZyUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;


@Repository
@Mapper
public interface ZyUserMapper extends BaseMapper<ZyUser> {

    ZyUser getUserByUserName(String username);

    @Select("select email from zy_user where email = #{email}")
    ZyUser getEmailByEmail(String email);

    @Select("select phone from zy_user where phone = #{phone}")
    ZyUser getPhoneByPhone(String phone);

}
